import requests
import redis
r = redis.StrictRedis(host='', port=6379, password='', db=1, decode_responses=True)

headers = {
    "User-Agent":'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36',
}
urls = r.lrange('link_url', 0, -1)
url = urls[2]
print(url)
response = requests.get(url, headers=headers)

response.encoding = 'utf-8'
print(response.text)